package com.xinzhidi.common.utils.netty;


/**
 * MBUS户阀188通信协议常量类
 */
public class HouseholdValve {

    /**
     * 2.3 控制码格式常量类
     */
    public static class ControlCodeFormat{
        /* 读表计数据 主站（主叫方）发送 */
        public static final String RD_COUNT_DATA_MASTER_STATION = "01";

        /* 读表计数据 从站（表计）回复 */
        public static final String RD_COUNT_DATA_SLAVE_STATION = "81";

        /* 读表计地址 主站（主叫方）发送 */
        public static final String RD_COUNT_ADDRESS_MASTER_STATION = "03";

        /* 读表计地址 从站（表计）回复 */
        public static final String RD_COUNT_ADDRESS_SLAVE_STATION = "83";

        /* 设置表计地址 主站（主叫方）发送 */
        public static final String SET_COUNT_ADDRESS_MASTER_STATION = "15";

        /* 设置表计地址 从站（表计）回复 */
        public static final String SET_COUNT_ADDRESS_SLAVE_STATION = "95";

        /* 控制阀门 主站（主叫方）发送 */
        public static final String CONTROL_VALVE_MASTER_STATION = "04";

        /* 控制阀门 从站（表计）回复 */
        public static final String CONTROL_VALVE_SLAVE_STATION = "84";
    }


    /**
     * 3.1.6 阀门控制模式常量类
     */
    public static class ValveControlModel {

        /* 强制开启阀门 */
        public static final String CONSTRAINT_OPEN_VALVE = "01";

        /* 强制关闭阀门 */
        public static final String CONSTRAINT_CLOSE_VALVE = "02";

        /* 停止阀门动作 */
        public static final String STOP_VALVE_MOVEMENT = "05";

        /* 常规开关阀控制，掉电开度保持不变 */
        public static final String ON_OFF_CONTROL_NO_CHANGE= "06";

        /* 常规开关阀控制，掉电开度恢复断电开度 */
        public static final String ON_OFF_CONTROL_OUTAGE = "07";

    }
    
}
